#!/bin/bash
#author Oliver
#since 2020-09-03 15:24:31
 
#git remote rm origin
#replace your git location
#git remote add origin 'https://gitee.com/rao-zhanxing/note.git'
git add .
git commit -m $1
git push -f origin master --force
 
if [ "$?" = "0" ]
then
 echo -e "\033[42;34m push to gitee success! \033[0m"
else
 ech -e "\033[41;30m push to gitee fail! \033[0m"
 exit 1
fi